home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Example / EdDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-22  |  2.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. #ifndef EDDOC_H
  2. #define EDDOC_H
  3. //===================================================================================
  4. //
  5. //     File:            EdDoc.h
  6. //     Release Version:    $Revision$
  7. //
  8. //     COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED RIGHTS
  9. //     RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT
  10. //     NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  11. //
  12. //     THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  13. //     CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  14. //     EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  15. //
  16. //     RESTRICTED RIGHTS LEGEND
  17. //     Use, duplication, or disclosure by the Government is subject to restrictions
  18. //     as set forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and
  19. //     Computer Software clause at DFARS 252.227-7013.
  20. //     Symantec Corporation, 10201 Torre Avenue, Cupertino, CA 95014.
  21. //
  22. //===================================================================================
  23.  
  24. #ifndef EDEDTEXT_H
  25. #include "EdEdText.h"
  26. #endif
  27.  
  28. #ifndef BRDOCUME_H
  29. #include <BRDocume.h>
  30. #endif
  31.  
  32. //-----------------------------------------------------------------------------------
  33. // class cEditDoc
  34. //
  35. // The editor Document.
  36. //-----------------------------------------------------------------------------------
  37.  
  38. class cEditDoc : public BR_CDocument
  39. {
  40. public:
  41.                         cEditDoc(BR_CApplication *application);
  42.     virtual                ~cEditDoc();
  43.  
  44.     // Overridden virtual methods
  45.     virtual void        NewWindow();
  46.     virtual BR_Boolean    DoSave();
  47.     virtual BR_Boolean    DoSaveAs(const BR_CFileSpecification &fileSpec);
  48.     virtual void        DoRevert();
  49.     virtual void        UpdateMenus(BR_CMenuBar &aMenuBar, BR_Boolean fCallSupervisor);
  50.     virtual BR_Boolean    DoCommand(unsigned short cmdId, 
  51.                                   BR_CObject *notifier,
  52.                                   BR_Boolean fCallSupervisor);
  53.  
  54. private:
  55.     cEdEditText            *fEdEditText;        // Pointer to the document's cEdEditText
  56.     BR_CTextStream        *fTextStream;        // Pointer to the document's cTextStream
  57.  
  58.                         BR_SETCLASSNAME(cEditDoc);
  59. };
  60.  
  61. #endif
  62.